The above does work.
Was that the problem?