Changed getRootModule method to accept addresses