Adding PRM Table code. Not completed yet.