Added new implementation for extensions setup.

Check the example extension for the new setup implementation.