Remove resize function