Removed the protected keyword from __after_collect() and __after_deploy() of the module class, as it prevented the methods from being called from the child module.