Moved marker settings to the beginning of the script.