Added the overlay code.