Added timers and commented out unused code. Also fixed issue where invalid requests are not displaying the correct error message.