Removed resize function