Code for demo board