Remove blank line
(cherry picked from commit 8ef0b67)
Add allowAdd method
(cherry picked from commit d07df42)