When I do it as a val rather than an object the methods aren't accessible. I made it a private object, does that help?