Change 'constant' function because it is not accepted.