Adding detached check when checking out