Added quiet configuration flag.
Moved some onload functionality around.