Added a Class that handles different contexts