Limiting allowed patches, fixes #24