Main source code for Desk.