Adding logging.
Implementing plugin loading functionality.