Removed sqrt calls from get_data