Added some functions for the checkinchat app.