Made all variables, states etc lower case