Added packet queueing and routing