Code blocks were not working properly