Fixed boolean parsing and added some logging