Updating the pull to do the cleanup after and before pull