Proper variable assignment