Started adding the functionality of listening to a socket