Changed some variables to consts to save RAM