Add lock script