Removed errors. Finally well working version.