Configured for ubuntu
Added history handlers.