Moved debug decorator to utils