Remove bind.
Refactor template method.
Fix exception class.