Finished adding code for user communication