Complete basic router implementation.