Attached methods to lib object so that they can be unit tested