Added code for the component module.