Replace constant with variable to get rid of warn