Fixed generate actions method.