Tested and tweaked some syscalls