Slide variable definitions up to avoid undefined