Restructure of script functions, removed altered dialog colour scheme.