Added set syscode function