Got a functional resize function =D