Added initial extension code.

Change-Id: I73e5dbb8597e48a41e9e135988352b997addf050