Fixed options to take keepAlive and others into account

Some options such as keepAlive and noColor are not being taken into account.

This Pull Request fixes that.