Changed the continue function from one big monolith to a dispatch of methods