 James increased his income by tightening control over royal estates and from the profits of justice, customs and feudal rights.He also gave his illegitimate sons lucrative benefices, diverting substantial church wealth into his coffers.James spent a large amount of his wealth on building work at Stirling Castle, Falkland Palace, Linlithgow Palace and Holyrood, and he built up a collection of tapestries from those inherited from his father.