Added layered extension.

The layered extension might not work 100% yet.