Updated pseudocode and Lookup table section.