[WIP] Stub implementation

This code does not work yet!

Change-Id: I2c725f627e67b7953cb6a520bb634633b261c86d