Optimize front end