Made source compatible with Scala 2.11.