Raise NotImplementedError properly