Added brackets around blocks in convenience.js