front end improved.

Undergoing code optimization and timer function.