Finding TOP location automatically and enforcing data type formats