Added proper module loading, but it has errors calling functions