Add thread startup code in box
Commend modes add in progress
Need to make thread functions
Will need flag mutex