See if this works better for a freeid function
Merge branch 'master' of github.com:po-devs/po-server-goodies