Outsources some variable assignments.