Almost finished kqueue