Implement module registration listener.

Signed-off-by: Toha <tohenk@yahoo.com>