Added addCheckin function