Modified system call to take a message