Function calls restructured for modularity.