Got variable assignment working