Added generates decorator, fixes #18