Added a new insertion method to the handler class