Fixed various bugs. Added render targets.