Moved package installation to pre-hook