New stuff for prof. Testing bug fix
Adding some logging