Hack to get this stupid sript to work.