Formated code and removed an useless procedure.