Refactored constructor out.