Added basic logging functionality