Preparing hydrocarbon