Made isActive private.
Style cleanup.
Got rid of the Stream stuff in environment.call

Also some minor style changes.