Function for receiving commands