Modifying sender and adding functions to util.c