Add basic location functionality. Preprocessing finished