 However, this aligned him against his half-brother, Robert Stewart, 1st Duke of Albany.In order to obtain control of Dumbarton Castle, the Duke of Albany offered its keeper, Walter de Danyelston, the semi-vacant see of St. Andrews.After a meeting between Albany and the Bishop elect at Abernethy in the summer of 1402, Thomas renounced his rights as Bishop and allowed a new "election" to take place.