Removed unused source code and added padding to the key insert.