Remove empty lines.
Implement group action functions.