Added functionality to frontend.