Added doubleX function
Added doubleX function