Sample function, added knockout