Changed a bit API

The API of PostModel is changed to adapt
for other usages.