Added feature to pass variable