Base code for Gymsense