Copied the code from the folder on solaris.