Code in 80% working condition - Reply code to be fixed