Added pad methods.

With tests.