Added code to generate bracket