Added more helpers, LOM limits and unit tests.