Reverted code for resource player