Scala implementation of GCS.