Re-added Re-sizing Function