Resolving 'before' scope binding issues