Added size check to numberListener