Fixed logging and added blacklisting