Complicate ruby script;
Add some log