Fixes #10 and Fixes #11