Replaced hardcoded numbers with their respective constants to increase maintainability and readability.