Used Python tricks (using less '.' and ...) to speed it up