Added basic bracket logic