Minor improvements

Remove the brackets in function definition
Add time measurement
404 check