Added check for 0