Turn procedure into simple method to simplify things.