Changes in frontend and added few functions for sanity test.