Some example code for statusengine