Partial implementation of pref

Just calls grounded once
Merge pull request #1 from Denaun/pref

Partial implementation of pref