Refined ladder script