Better package install function