Adds support for custom padding and update samples