Solution and code for the AutoFolder application for OSP