Refined gear script