Solved by ptrblck in post #4 
              
              
                Please post a minimal, executable code snippet as your current one uses undefined modules. 
You can post code snippets by wrapping them into three backticks ```.