Add submap application function