Add spike code