Added single parameter resize function.