SPIKE - working on algorithm