Move statement to earlier part of script