Update slarm.cpp