Added all literal-related code to findOne.