Replaced magic number in code