Moved db instructions to the end.