Reads weights dynamically