Fixed the compiler warning about Future[String] type erasure, and added the
'deprecation' flag.