Changed nature of system loop and added demo