Moved IST specific code to dot. Closes #7