Updated to new julia api

Tests passing again.