Rearranged code
Added Sign