Changed references from VERSION to APPVERSION for consistency