Tested on CentOS and Ubuntu