Changed certain methods to static.