Add apply script

Change-Id: I8b4b8b849965ebef98d64e469ecff6f15f601baf