Adapted code to changes in Command4j.