Replaced hardcoded values with variable ones.