Making things easier

bus wait and declare function in separate method
More refactoring

define and switch by ea_mode