Finished coding setup and cleanup functions