Must disable optimization to be able to debug