Add missing include.
Add comment to TODO list.
Add multithreaded implementation of I/O handling.