Modified application_name= method