Create objects outside loops