Merge pull request #12 from carealejo/master

Factorized constrain posting functions.