Added when for knockout