Made code compatible for creating reports for Rik's layout