This is totally wrong. Please, test before sending pull requests.