Converting to direct solution