Added main for paste.appfactory