Implement some saving functionality to maximaElementHandler