Base code for Framework and App