Extending getContext method