Added rezising functions.