Fixed cons function.