Resolve #3
Allow partial rewrite with padding