Added getRun() funtion

Added getRun() function