Added logs; and very dirty authorization