Moved the private methodds to the bottom of the file