Returning correct values