Privatize methods and correct flash error