Implemented overlay for displaying the functions.