More kernel routines, added cli