Uses doubles now like it should