Declared sdf within the actions scope.
Fixes #277