Made gate render dynamically.