Added basic logging capabilities.