Changed center position to variables