Added timeout to directive for initial plotting