Added the functions for communication