Fixes padding calculations. Updates to release 1.1.1.