Remove hard coded data (foot order), cleanup+simplify the code.