A minimalistic router implementation