Fixed Balcony problem + optimized balcony and frame generation

Fixed Balcony problem + optimized balcony and frame generation