Added function declarations and renamed setrootcmd to statusstr.