Adding skeleton logic to sleep system call