Make projection its own function.