Better API for checking in and out

No need to place anything on the stack when checking in or out.