Encapsulate couple of functions