Moving main.h code to sys_manager let coding consistent.