Works better when it's not in debug