Remove errors by using Object instead of all the doubles