Added post edition feature & removed unused code.