Added main script for commit states change