Mode initilization now working