New function inOffice() now working