Added checkout and undocheckout