Replaced short with int and TRUE/FALSE with true/false.