Removed serial code and added system calls.