Added matrix-valued functions