Modified script to add transparency, but not working quite right yet