slas - Add initial code to main loop