Addeded NotImplementedError message for templated functions