Added functions to improve readability.