Move variable declarations

Signed-off-by: Itai Koren <itkoren@gmail.com>