Tidied and fixed code (did not function with TWINKLE();)