Update scripts.

Based on 8bf46cd.