Updated Model to handle transaction locks