UPDATED: Moved module to use yaml configuration rather than php code