Added extern variables