Adapted to sbt