Initial implementation of route processing.