Added basic logging to greedy