Common classes , functions and settings