Added layoutTemplate option