Tested on solaris