Change before into let in the secs