Working code for modular board