Moved variable so it does not get used unneccesarily