Added a background handler to run the twinkler func.