Moved some common functions to Ubuntu only.