Fixed segmentation fault: 11
Input params
Sparta-mode (inspired by PHP version)