Added front end message and removed uneeded code.