Added resolution data passing. Fixes #2

But not very elegant.