Only useful code present in runonfunction now