Corrected docstrings and variables, also used 'execute' func.