I'd prefer make it a method, more OOP-like.