Changed imports and added ad repository