Sped up sample slightly, added type to Domain