Added utility. Extracted function call from inside a method