Finished Coding Functionality