Main part seems to work