Cleaned up the code and sent it to the group