implementing the use of the script inside the ring buffer.