Fixed critical bug, which would make context-retrieval from path fail due to invalid method signature
Made type a class variable to allow overrides to be done more easily