Increase maximum template depth