Updated with code as of today. Some changes in script, bug fixes, etc.