Update based on review comments. Change function to prependBaseUri and fix formatting.