Added logic and functionality for possible new pcodes.