Started using tf library instead of doing everything manually