Fixed divide by 0 and added starting scale