Converted to use native objects rather than moo tools objects for huge performance gains