Use external module as profiler

Closes #174