Added template compatibility check (Closes #6)