Added new layer methods in thrift file.