Moved private method to the bottom