Added some code to control LCD