Moved delay to test