Pseudo code for byway communication