Removed unused button functions.