Update code for spike format 0.4