Updated and tested with simple profilab test project