Checkin main code part