Changed Pi::registry API to Pi::entity