Switched to double instead of long