Added Route handler... Also added events to allow for further flexibility