Removed modifyPoints function