Revised code for Outfit