Changed imbawall to buildTemplate