Tried to implement variable paths, but now it's not working correctly.