Matt's factory simulation