Retrieve prior and store in variable
Add and fix comments
Compute present bit mask using method