Updates for new API (brofistjs/brofist#15)