Running Code in the Background ============================== TODO: use MCIWB's threading support to monitor the state of things