Used underscore.extends in place of manual property copying