Working code - 30 second test