Added handlers so that the future monad can behave like the IO monad