Implemented undo functionality (fixed size) - Fixed clear