added timeout parameter to profile