Cleanup
Added a mirror check.