Improved code execution for atomic actions etc.