Changed local vars to lower case