Fix pointer bug
Add names to hooks
Add url hook
Close readers after send