Adapted the regex to the new format.
Simplification of the output.
Added cycle.
Bugfixes related to not finding locks correctly.