Version 0.4
Add hook mechanism.