Implemented the has_source value with mode setting.
Merge pull request #4 from computer-whisperer/has_source_implementation

Implemented the has_source value with mode setting.