Extracted functions out to make code modular.