Log function is passed as arguemnt to runStep(). Fixes #53