Fixing dagger module, removing unnecessary code