Snatch startup code of led function