Replaced magic number for constants