[UPDATE] added queue script to serialize function execution.