Removed changes for setFrame