Moved extension code into extensions folder