Scala to the rescue! That is, if I can fix a weird error I've been getting..