Base code for compliling (almost) baro example