Performing cleanup