Converted action package to groovy