Added utility functions for LSM